import request from '../request.js'
// 表单 - 行者问题  http://192.168.0.139:263/api/problem/problem_type
export function problem_type(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/problem/problem_type", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}
// 表单 - 起名等表单提交 
export function form_submit(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/yitian/form_submit", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}
